package com.xh.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.chat.model.table.User;
import com.xh.chat.model.vo.FriendRequestVO;
import com.xh.chat.model.vo.MyFriendsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wen
 * @since 2021-08-09
 */
public interface UserMapper extends BaseMapper<User> {

    List<FriendRequestVO> queryFriendRequestList(@Param("acceptUserId") Long acceptUserId);

    List<MyFriendsVO> queryMyFriends(@Param("userId") Long userId);

    void batchUpdateMsgSigned(@Param("list") List<Long> msgIdList);

}
